<extend name="Base/no_side_common"/>
<block name="body">
	<div class="wrap">
		<section id="contents">
			<div class="setting_step app_setting">
				<a class="step " href="{:U('Home/Public/step_0',array('id'=>$id))}">1.增加基本信息</a>
				<a class="step step_cur" href="{:U('Home/Public/step_1',array('id'=>$id))}">2.配置公众平台</a>
				<a class="step step_cur_1" href="{:U('Home/Public/step_2',array('id'=>$id))}">3.保存接口配置</a>
			</div>
			<div class="tab-content">
				<!-- 表单 -->
				<form class="form-horizontal bind_step_form" method="post"
				      action="{:U('Home/Public/step_2',array('id'=>$id))}" id="form">
					<!-- 基础文档模型 -->
					<div class="tab-pane in tab1" id="tab1">
						<div class="item_wrap">
							<div class="form-item cf toggle-appid">
								<label class="item-label"> AppID <span class="check-tips"> （应用ID） </span></label>

								<div class="controls">
									<input type="text" value="{$info.appid}" name="appid" class="text input-large">
								</div>
							</div>
							<div class="form-item cf toggle-secret">
								<label class="item-label"> AppSecret <span class="check-tips"> （应用密钥） </span></label>

								<div class="controls">
									<input type="text" value="{$info.secret}" name="secret" class="text input-large">
								</div>
							</div>
							<div class="form-item cf toggle-encodingaeskey">
								<label class="item-label"> EncodingAESKey <span
										class="check-tips"> （安全模式下必填） </span></label>

								<div class="controls">
									<input type="text" value="{$info.encodingaeskey}" name="encodingaeskey"
									       class="text input-large">
								</div>
							</div>

						</div>
						<div class="form-item cf bind_step_form_next_item">
							<button target-form="form-horizontal" type="submit" id="submit"
							        class="btn submit-btn ajax-post">
								<php> if($is_audit==0 && !$reg_audit_switch) { echo '提交审核'; } else { echo '保存'; }</php>

							</button>
							<br/>

							<p style="padding:20px 0;">配置信息遇到问题？<a href="{:U('Home/index/lead')}" target="_blank">点击查看接入指引</a>
							</p>
						</div>
					</div>
				</form>
			</div>
			<!--帮助消息
			  <div class="help_content">
				  <h3>帮助消息</h3>
				  <p>以上消息可以从公众平台里找到，如下图</p>
				  <p><img src="{:SITE_URL}/Public/Home/images/help04.png" ></p>
			  </div>
			  -->
		</section>
</block>
<block name="script">
	<link href="__STATIC__/datetimepicker/css/datetimepicker.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
	<php>if(C('COLOR_STYLE')=='blue_color') echo '
		<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css?v={:SITE_VERSION}" rel="stylesheet"
		      type="text/css">
		';
	</php>
	<link href="__STATIC__/datetimepicker/css/dropdown.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.js"></script>
	<script type="text/javascript"
	        src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js?v={:SITE_VERSION}"
	        charset="UTF-8"></script>
	<script type="text/javascript">
		$('#submit').click(function () {
			$('#form').submit();
		});

		$(function () {
			$('.time').datetimepicker({
				format: 'yyyy-mm-dd hh:ii',
				language: "zh-CN",
				minView: 0,
				autoclose: true
			});
			$('.date').datetimepicker({
				format: 'yyyy-mm-dd',
				language: "zh-CN",
				minView: 2,
				autoclose: true
			});
			showTab();
		});
	</script>
</block>
